package com.heima.xxljob.job;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

/**
 * @author 黄晏凯
 */
@Component
public class HelloJob {

    @XxlJob("demoJobHandler")
    public void helloJob() {
        XxlJobHelper.log("XXL-JOB,Hello World");
        System.out.println("简单任务执行了。。。。");
    }
}